[GtkSizeGroup] don't recurse into yourself
authorDavyd Madeley <davyd@madeley.id.au>
Mon, 24 Aug 2009 05:41:37 +0000 (15:41 +1000)
committerDavyd Madeley <davyd@madeley.id.au>
Sun, 30 Aug 2009 00:47:52 +0000 (10:47 +1000)
gtk/gtksizegroup.c

index 5926b52557c7a9232c72c33ee216472c38db7273..6cd02c0e2e58addcbc82f58f2e24cf04fd62aea9 100644 (file)
@@ -223,6 +223,10 @@ queue_resize_on_widget (GtkWidget *widget,
              if (widget == parent)
                real_queue_resize (parent);
            }
+         else if (tmp_list->data == widget)
+            {
+              g_warning ("A container and its child are part of this SizeGroup");
+            }
          else
            queue_resize_on_widget (tmp_list->data, FALSE);
 
@@ -249,6 +253,10 @@ queue_resize_on_widget (GtkWidget *widget,
              if (widget == parent)
                real_queue_resize (parent);
            }
+         else if (tmp_list->data == widget)
+            {
+              g_warning ("A container and its child are part of this SizeGroup");
+            }
          else
            queue_resize_on_widget (tmp_list->data, FALSE);